package com.example.lianguisystem.config;


import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;


/**
 * @Authof: Huangchenyang
 * @Date: Create in 16:32 2018/8/8
 * 虚拟路径，解决浏览器不展示本地图片的问题
 */
@Configuration
public class MyWebConfig implements WebMvcConfigurer {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/d/**").addResourceLocations("file:///D:/Supplier/UploadFiles/cdq-dev-storage/");

    }
}